window: Derive from GtkWidget
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 May 2020 19:17:20 +0000 (15:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 May 2020 02:53:08 +0000 (22:53 -0400)
commit9a65ed9adaa6e34d8322f8f6d642d88a9bd050e0
tree77661155d11857dbed0bcea0ecd93f8f0af9acd9
parentf59f3551902268600090c0382068103a09184df0
window: Derive from GtkWidget

We want to remove GtkBin and GtkContainer as they don't
provide much useful functionality anymore. This requires
us to move get_request_mode and compute_expand down.

Update the accessible implementation to match, remove
remnants of container implementations in GtkWindow
subclasses, and fix livecycle issues around destroy
vs dispose in GtkAssistant.

After this commit, using gtk_container_add on window
subclasses is not allowed anymore, but adding childing
with <child> in ui files still works.

See #2681
gtk/a11y/gtkwindowaccessible.c
gtk/gtkapplicationwindow.c
gtk/gtkassistant.c
gtk/gtkshortcutswindow.c
gtk/gtkwindow.c
gtk/gtkwindow.h
gtk/ui/gtkassistant.ui